package com.devo.icecream.utils

import okhttp3.Interceptor
import okhttp3.Response

class MachineKeyInterceptor:Interceptor {

    companion object{
        var key: String = ""
    }

    override fun intercept(chain: Interceptor.Chain): Response {
        val newRequest = chain.request().newBuilder()
            .addHeader("machineKey", key)
            .build()
        return chain.proceed(newRequest)
    }
}